package com.huarui.part.model;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.ewaf.framework.model.BaseDataObject;

/**
 * 计量单位
 * 
 * @author xu
 * 
 */
public class MeasurementUnit extends BaseDataObject {

	private static final long serialVersionUID = -713383448014210425L;
	/**
	 * 主键　
	 */
	private Integer id;
	/**
	 * 名称
	 */
	private String name;

	@Override
	public Integer getId() {

		return this.id;
	}

	/**
	 * 得计量单位名称
	 * 
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * 设置计量单位名称
	 * 
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this); 
	}

}
